﻿var os = require('os');
devName = os.hostname();
function getIPAdress() {
    let interfaces = os.networkInterfaces();
    for (var devName in interfaces) {
        var iface = interfaces[devName];
        for (var i = 0; i < iface.length; i++) {
            let alias = iface[i];
            if (alias.family === 'IPv4' && alias.address !== '127.0.0.1' && !alias.internal) {
                return alias.address;
            }
        }
    }
}
var variable = {
    //虚拟设计院配置
    config_xnsjyset: {
        server_ip: {
            content: '120.27.18.161',//120.27.18.161
            des: '虚拟设计院后台服务'
        },
        server_ip4: {
            content: '172.31.181.174',//120.27.18.161
            des: '虚拟设计院外网地址(私有)'
        },
        sm_inviteurl: {
            content: "/api/Invite/dealwithinvite",
            des: '消息服务器的使用'
        },
    },
    config_set: {       
        server_ip2: {
            content: 'http://118.190.203.202',
            des: '服务网络(前端访问)'
        },
        server_ip3: {
            content: 'http://172.31.181.173',
            des: '服务外网地址(私有)'
        },       
        code_url: {
            content: "http://118.190.203.202/zdnet/twocode.html",
            des: '二维码的url：扫描跳转路径'
        },
        upload_url: {
            content: "http://118.190.203.202:9060/",
            des: '图片上传的ip路径'
        },
        cluster_url: {
            content: "http://118.190.203.202:9066",
            des: '集群服务器'
        }
    }
};
module.exports = variable;



